home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / math / gle-3.000 / gle-3 / gle / makefile.os2 < prev    next >
Makefile  |  1995-02-07  |  4KB  |  150 lines

  1. #
  2. #             Main Makefile for GLE under OS/2 by Axel Rohde
  3. #
  4. #             Compiler EMX 0.8h patchlevel 9  (GCC 2.5.7)
  5. #
  6.  
  7. # debugging:
  8. #CC = gcc -gg -O -m486
  9.  
  10. # final:
  11. CC = gcc -O2 -fomit-frame-pointer -m486 -s
  12.  
  13. # -Zomf -Zmtd -s
  14. # add this for dynamic linking. dynamically linked exe's don't run under DOS.
  15. # extension of objects must be ".o"
  16.  
  17. LIBS   = -lm -lvideo -los2
  18. CFLAGS = -DEMXOS2 -DGOTSTRDUP
  19.  
  20. # I you use IBM's (Microslugs!) NMAKE
  21. MAKE = nmake
  22.  
  23.  
  24. # rules: (nmake calls cl.exe (Microsoft C ;-> ) by default)
  25. .SUFFIXES: .c .o .exe
  26. .c.o:
  27.         $(CC) -c $(CFLAGS) $<
  28.  
  29.  
  30. GLE_PATH=/usr/local/gle
  31.  
  32.  
  33. #                               Objects:
  34. GLEOBJS=gle.o drawit.o pass.o token.o polish.o fn.o $(MEMMOVE) \
  35. var.o eval.o general.o run.o sub.o font.o core.o name.o \
  36. keyword.o axis.o graph.o b_tab.o b_text.o fitbez.o fitcf.o \
  37. begin.o key.o mychar.o graph2.o memory.o gprint.o edt.o menu.o \
  38. curve.o tex.o turbo.o turboscr.o inkey.o
  39.  
  40. PSOBJS = d_ps.o miss_os2.o
  41. HPGLOBJS = d_hpgl.o easydev.o miss_os2.o
  42. DVIOBJS  = d_bmp.o easydev.o miss_os2.o
  43. OS2PMOBJS = d_pm.o miss_pm.o
  44. OS2PMSOBJS = d_pms.o miss_pms.o
  45. WPOBJS = dviwp.o
  46.  
  47. # rules to build gle executables
  48.  
  49. # varargs didn't work  with GCC on DEC-5400 Mips, so uses native compiler
  50. #gleparts: warning surface gle_ps fbuild makefmt dofonts \
  51. #        inittex.ini gle_hpgl gle_dvi \
  52. #        gle_dvip graph.idx
  53. #        echo
  54.  
  55. gleparts: warning gle_ps.exe fbuild.exe makefmt.exe dofonts \
  56.           inittex.ini gle_hpgl.exe \
  57.           gle_dvi.exe gle_dvip.exe graph.idx d_pm.o gle_pm.exe
  58.  
  59.  
  60. warning:
  61.         type makewarn.os2
  62.  
  63. gle: glecmd.c
  64.         $(CC) -DGLEBINS=\"$(GLE_BINS)\" glecmd.c -o gle $(CFLAGS) $(LIBS)
  65.  
  66. makeidx.exe: makeidx.c
  67.         $(CC) makeidx.c -o makeidx.exe $(CFLAGS) $(LIBS) def.def
  68.  
  69. graph.idx: graph.hlp makeidx.exe
  70.         makeidx
  71.  
  72. surface: surfcmd.c
  73.         $(CC) -DGLEBINS=\"$(GLE_BINS)\" surfcmd.c -o surface $(CFLAGS) $(LIBS)
  74.  
  75. gle_ps.exe: $(PSOBJS) $(GLEOBJS)
  76.         $(CC) -o gle_ps.exe $(CFLAGS) $(GLEOBJS) $(PSOBJS) $(LIBS) def.def
  77.  
  78. # if this rule is failing, make sure you have define GLE_TOP
  79. # and also delete any old copies of INITTEX.INI
  80. inittex.ini: init.tex
  81.         gle_ps init.tex
  82.  
  83. gle_hpgl.exe: $(HPGLOBJS) $(GLEOBJS)
  84.         $(CC) -o gle_hpgl.exe $(CFLAGS) $(GLEOBJS) $(HPGLOBJS) $(LIBS) def.def
  85.  
  86. gle_pmf.exe: $(OS2PMOBJS) $(GLEOBJS)
  87.         $(CC) -o gle_pmf.exe $(CFLAGS) $(GLEOBJS) $(OS2PMOBJS) $(LIBS) def.def
  88.  
  89. gle_pm.exe: $(OS2PMSOBJS) $(GLEOBJS)
  90.         $(CC) -o gle_pm.exe $(CFLAGS) $(GLEOBJS) $(OS2PMSOBJS) $(LIBS) def.def
  91.  
  92. gle_dvi.exe: $(DVIOBJS) $(GLEOBJS)
  93.         $(CC) -o gle_dvi.exe $(CFLAGS) $(GLEOBJS) $(DVIOBJS) $(LIBS) def.def
  94.  
  95. gle_dvip.exe: dvitobit.o bmp.o bmp.h dvivt.o
  96.         $(CC) -o gle_dvip.exe $(CFLAGS) dvitobit.o bmp.o dvivt.o $(LIBS) def.def
  97.  
  98.  
  99. dofonts:
  100.         cd font
  101.         $(MAKE) 
  102.         cd ..
  103.  
  104. doutils:
  105.         cd util\fitls
  106.         $(MAKE) 
  107.         cd ..\..
  108.         cd util\fitz
  109.         $(MAKE)
  110.         cd ..\..
  111.         cd util\manip
  112.         $(MAKE)
  113.         cd ..\..
  114.         cd util\letz
  115.         $(MAKE)
  116.         cd ..\..
  117.         cd util\contour
  118.         $(MAKE)
  119.         cd ..\..
  120.         cd util\surf
  121.         $(MAKE)
  122.         cd ..\..
  123.  
  124. makefmt.exe: makefmt.o parseafm.o parseafm.h
  125.         $(CC) -o makefmt.exe $(CFLAGS) makefmt.o parseafm.o -lm def.def
  126.  
  127. fbuild.exe: fbuild.o token.o
  128.         $(CC) -o fbuild.exe $(CFLAGS) fbuild.o token.o -lm def.def
  129.  
  130. gle.o: gle.c glepath.h all.h
  131.         $(CC) -c -DGLEPATH=\"$(GLE_PATH)/\" $(CFLAGS) gle.c
  132.  
  133. miss_pm.o: miss_os2.c
  134.         $(CC) -c $(CFLAGS) -DPM miss_os2.c -o miss_pm.o
  135.  
  136. miss_pms.o: miss_os2.c
  137.         $(CC) -c $(CFLAGS) -DFILLPATH -DPM miss_os2.c -o miss_pms.o
  138.  
  139. d_pms.o:  d_pm.c
  140.         $(CC) -c $(CFLAGS) -DFILLPATH d_pm.c -o d_pms.o
  141.  
  142.  
  143. $(GLEOBJS): \
  144.         all.h axis.h begin.h color.h core.h edt.h \
  145.         font.h glepro.h global.h graph.h justify.h key.h \
  146.         mydev.h mygraph.h tex.h 
  147.  
  148. clean:
  149.         cmd /c del *.obj *.o *.exe inittex.ini
  150.